import type { App } from 'vue';
import {
  create,
  NConfigProvider,
  NDialogProvider,
  NMessageProvider,
  NLoadingBarProvider,
  NNotificationProvider,
  NInput,
  NButton,
  NForm,
  NFormItem,
  NIcon,
  NCheckbox,
  NLayout,
  NLayoutHeader,
  NLayoutContent,
  NLayoutFooter,
  NLayoutSider,
  NMenu,
  NBreadcrumb,
  NBreadcrumbItem,
  NDropdown,
  NSpace,
  NAvatar,
  NEmpty,
  NTooltip,
  NDrawer,
  NDrawerContent,
  NDivider,
  NSwitch,
  NBadge,
  NCard,
  NGrid,
  NGridItem,
  NSkeleton,
  NSpin,
  NList,
  NListItem,
  NThing,
  NTag,
  NProgress,
  NTabs,
  NTabPane,
  NSelect,
  NAlert,
  NTree,
  NRadioGroup,
  NRadio
} from 'naive-ui';

const naive = create({
  components: [
    NConfigProvider,
    NDialogProvider,
    NMessageProvider,
    NLoadingBarProvider,
    NNotificationProvider,
    NInput,
    NButton,
    NForm,
    NFormItem,
    NIcon,
    NCheckbox,
    NLayout,
    NLayoutHeader,
    NLayoutContent,
    NLayoutFooter,
    NLayoutSider,
    NMenu,
    NBreadcrumb,
    NBreadcrumbItem,
    NDropdown,
    NSpace,
    NAvatar,
    NEmpty,
    NTooltip,
    NDrawer,
    NDrawerContent,
    NDivider,
    NSwitch,
    NBadge,
    NCard,
    NGrid,
    NGridItem,
    NSkeleton,
    NSpin,
    NList,
    NListItem,
    NThing,
    NTag,
    NProgress,
    NTabs,
    NTabPane,
    NSelect,
    NAlert,
    NTree,
    NRadioGroup,
    NRadio
  ]
});

export function setupNaive(app: App<Element>) {
  app.use(naive);
}
